'''
例2.6
'''
import sympy
import numpy as np
from sympy import oo
x = sympy.Symbol('x')
f = (x**2-1)/(x-1)

print(sympy.limit(f,x,1))
